package com.tyl.xtk.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.tyl.xtk.beans.po.RolePermissionMap;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Param;

/**
 * 角色权限映射Mapper接口
 */
public interface RolePermissionMapMapper extends BaseMapper<RolePermissionMap> {
    
    /**
     * 根据角色ID删除所有权限映射
     * @param roleId 角色ID
     */
    @Delete("DELETE FROM role_permission_map WHERE role_id = #{roleId}")
    void deleteByRoleId(@Param("roleId") Long roleId);
}